package Server.ServerMainFrame.ServerMainFrameModel.ServerToTeamThread;

import java.io.*;
import java.net.*;
import Server.ServerMainFrame.ServerMainFrameModel.ServerThread.*;
import Server.ServerMainFrame.ServerMainFrameModel.*;

import Packet.*;

import Server.ServerMainFrame.ServerMainFrameModel.ServerThread.*;

public class ServerToTeamThread implements ServerThread extends Thread
{
	public ServerToTeamThread(Socket socket, ServerMainFrameModel model)
	{
		this.socket = socket;
	}
	
	public void run()
    {
        receivePacketThread = new ReceivePacketThread(this);
        receivePacketThread.start();
    }
	
	
	public ObjectInputStream getObjectInputStream()
	{
		return objectInputStream;
	}

	public void setObjectInputStream(ObjectInputStream objectInputStream)
	{
		this.objectInputStream = objectInputStream;
	}

	public ObjectOutputStream getObjectOutputStream()
	{
		return objectOutputStream;
	}

	public void setObjectOutputStream(ObjectOutputStream objectOutputStream)
	{
		this.objectOutputStream = objectOutputStream;
	}
	
	
	
	public void dealPacket(Packet packet)
	{
		if (packet.getPacketType() == PacketType.ClientLoginPacket)
		{
		   
		}
	}
	
	
	private Socket socket;

    private ReceivePacketThread receivePacketThread;
    
    private ObjectInputStream objectInputStream;
    private ObjectOutputStream objectOutputStream;
	
}
